//语法高亮
function heiLight(editorDIV){
    //将#editor DIV文本中的回车换成p
    var tt = $(editorDIV).text()
    html = tt.replace(/\n/g,"<p>\n");

    html = html.replace(/(\/.+)([{]{1})(.*)([}]{1})/g,"<span class='order'>$1</span><span class='kuohao'>$2</span><span class='prms'>$3</span><span class='kuohao'>$4</span>");
    html = html.replace(/(\/{2}.+)/g,"<span class='order'>$1</span>");
    // #~###### h1-h6
    html = html.replace(/(#{6})\s{1}(.*)/g,"<span class='order'>$1</span> <span class='heading'>$2</span>");
    html = html.replace(/(#{5})\s{1}(.*)/g,"<span class='order'>$1</span> <span class='heading'>$2</span>");
    html = html.replace(/(#{4})\s{1}(.*)/g,"<span class='order'>$1</span> <span class='heading'>$2</span>");
    html = html.replace(/(#{3})\s{1}(.*)/g,"<span class='order'>$1</span> <span class='heading'>$2</span>");
    html = html.replace(/(#{2})\s{1}(.*)/g,"<span class='order'>$1</span> <span class='heading'>$2</span>");
    html = html.replace(/(#{1})\s{1}(.*)/g,"<span class='order'>$1</span> <span class='heading'>$2</span>");

    html = html.replace(/(\/{1}\*{1})(.*)(\*{1}\/{1})/g,"<span class='rem-kuohao'>$1</span><span class='rem-body'>$2</span><span class='rem-kuohao'>$3</span>");


    $(editorDIV).html(html);
}